package dao;
/*
 * 定义数据的访问接口，不要与具体的实现技术相关，即不throws SQLException等具体的异常
 */
import java.util.List;

import entity.Emp;



public interface EmpDao {
	public void save (Emp emp) throws Exception;
	public void delete(int id) throws Exception;
	public void deleteByIds(int[] ids) throws Exception;
	public void update(Emp emp) throws Exception;
	public Emp findById(int id) throws Exception;
	public List<Emp> findAll() throws Exception;
	public Emp findByUsername(String userName) throws Exception;
}
